package com.zrgj.front.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.zrgj.common.response.BaseResponse;
import com.zrgj.common.response.StatusCodeEnum;
import com.zrgj.domain.Brand;
import com.zrgj.manager.service.IBrandService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class BrandController {
    @Reference
    private IBrandService brandService;

    @GetMapping(value = "/getBrand")
    public BaseResponse getBrand(){
        List<Brand> brands = brandService.selectBrandList();

        return new BaseResponse(StatusCodeEnum.SUCCESS,brands);
    }
}
